﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using Oracle.DataAccess.Client;

namespace SO_DataFetcher.PubFunctions.DataBaseHelp
{
    public interface IDataHelper
    {
        void GetConnectString(string ip, string port, string name, string psw, string dataTable);

        void Init(string ip, string port, string name, string psw, string dataTable);

        DataTable ExecuteSqls(IEnumerable<string> sqls);
         
        DataTable GetDataTable(string sql);

        void ExecuteSql(string sql);
        
        DataSet GetDataSet(string sql);

        void OpenConnection();

        void CloseConnection();

        string Connecting { get; }

        void Instance();
    }
}
